package io.chance.receiverlei.db.model;

import lrq.data.Annotation.Table;
import lrq.data.Annotation.TableMapping;
import lrq.data.Model;

import java.sql.Timestamp;

@Table(tableName = "devicekv4301")//动态，后面接年月+批次
public class DeviceKv4301 extends Model {

    @TableMapping(FieldName = "ITEMID", Comment = "guid", PrimaryKey = true)
    protected String ITEMID;

    @TableMapping(FieldName = "INSTPOS", Comment = "网关，站点唯一编码")
    protected String INSTPOS;

    @TableMapping(FieldName = "GATEWAY", Comment = "网关，站点唯一编码")
    protected String GATEWAY;

    @TableMapping(FieldName = "ADDRESS", Comment = "网关，站点唯一编码")
    protected String ADDRESS;

    @TableMapping(FieldName = "DEVICETYPE", Comment = "设备类型,采集端为0")
    protected Integer DEVICETYPE;

    @TableMapping(FieldName = "ONLINEFLAG", Comment = "设备类型,采集端为0")
    protected Integer ONLINEFLAG;

    @TableMapping(FieldName = "LJTIME", Comment = "雷击时间")
    protected Timestamp LJTIME;

    @TableMapping(FieldName = "CREATETIME", Comment = "数据时间")
    protected Timestamp CREATETIME;

    @TableMapping(FieldName = "AXDL", Comment = "A电流")
    protected Double AXDL;

    @TableMapping(FieldName = "BXDL", Comment = "A电流")
    protected Double BXDL;

    @TableMapping(FieldName = "CXDL", Comment = "A电流")
    protected Double CXDL;

    @TableMapping(FieldName = "AXDY", Comment = "A电压")
    protected Double AXDY;

    @TableMapping(FieldName = "BXDY", Comment = "A电压")
    protected Double BXDY;

    @TableMapping(FieldName = "CXDY", Comment = "A电压")
    protected Double CXDY;

    @TableMapping(FieldName = "TEMPERATURE1", Comment = "环境温度1")
    protected Double TEMPERATURE1;

    @TableMapping(FieldName = "HUMIDITY1", Comment = "环境湿度1")
    protected Double HUMIDITY1;

    @TableMapping(FieldName = "TEMPERATURE2", Comment = "SPD温度")
    protected Double TEMPERATURE2;

    @TableMapping(FieldName = "AIRSWITCH", Comment = "空开开关量")
    protected Integer AIRSWITCH;

    @TableMapping(FieldName = "SPDJD", Comment = "SPD接地状态")
    protected Integer SPDJD;

    @TableMapping(FieldName = "SPD", Comment = "SPD劣化状态")
    protected Integer SPD;

    @TableMapping(FieldName = "LJNUM", Comment = "雷击次数")
    protected Integer LJNUM;

    public DeviceKv4301() {
        super();
    }

    public String getITEMID() {
        return ITEMID;
    }

    public DeviceKv4301 setITEMID(String ID) {
        this.ITEMID = ID;
        return this;
    }

    public Timestamp getLJTIME() {
        return LJTIME;
    }

    public DeviceKv4301 setLJTIME(Timestamp LJTIME) {
        this.LJTIME = LJTIME;
        return this;
    }

    public Timestamp getCREATETIME() {
        return CREATETIME;
    }

    public DeviceKv4301 setCREATETIME(Timestamp CREATETIME) {
        this.CREATETIME = CREATETIME;
        return this;
    }

    public String getGATEWAY() {
        return GATEWAY;
    }

    public DeviceKv4301 setGATEWAY(String GATEWAY) {
        this.GATEWAY = GATEWAY;
        return this;
    }

    public String getINSTPOS() {
        return INSTPOS;
    }

    public DeviceKv4301 setINSTPOS(String INSTPOS) {
        this.INSTPOS = INSTPOS;
        return this;
    }

    public String getADDRESS() {
        return ADDRESS;
    }

    public DeviceKv4301 setADDRESS(String GATEWAY) {
        this.ADDRESS = GATEWAY;
        return this;
    }

    public Integer getDEVICETYPE() {
        return DEVICETYPE;
    }

    public DeviceKv4301 setDEVICETYPE(Integer DEVICETYPE) {
        this.DEVICETYPE = DEVICETYPE;
        return this;
    }

    public Integer getONLINEFLAG() {
        return ONLINEFLAG;
    }

    public DeviceKv4301 setONLINEFLAG(Integer DEVICETYPE) {
        this.ONLINEFLAG = DEVICETYPE;
        return this;
    }

    public Double getAXDL() {
        return AXDL;
    }

    public DeviceKv4301 setAXDL(Double deviceType) {
        this.AXDL = deviceType;
        return this;
    }

    public Double getBXDL() {
        return BXDL;
    }

    public DeviceKv4301 setBXDL(Double deviceType) {
        this.BXDL = deviceType;
        return this;
    }

    public Double getCXDL() {
        return CXDL;
    }

    public DeviceKv4301 setCXDL(Double deviceType) {
        this.CXDL = deviceType;
        return this;
    }

    public Double getAXDY() {
        return AXDY;
    }

    public DeviceKv4301 setAXDY(Double deviceType) {
        this.AXDY = deviceType;
        return this;
    }

    public Double getBXDY() {
        return BXDY;
    }

    public DeviceKv4301 setBXDY(Double deviceType) {
        this.BXDY = deviceType;
        return this;
    }

    public Double getCXDY() {
        return CXDY;
    }

    public DeviceKv4301 setCXDY(Double deviceType) {
        this.CXDY = deviceType;
        return this;
    }

    public Double getTEMPERATURE1() {
        return TEMPERATURE1;
    }

    public DeviceKv4301 setTEMPERATURE1(Double deviceType) {
        this.TEMPERATURE1 = deviceType;
        return this;
    }

    public Double getHUMIDITY1() {
        return HUMIDITY1;
    }

    public DeviceKv4301 setHUMIDITY1(Double deviceType) {
        this.HUMIDITY1 = deviceType;
        return this;
    }

    public Double getTEMPERATURE2() {
        return TEMPERATURE2;
    }

    public DeviceKv4301 setTEMPERATURE2(Double deviceType) {
        this.TEMPERATURE2 = deviceType;
        return this;
    }

    public Integer getAIRSWITCH() {
        return AIRSWITCH;
    }

    public DeviceKv4301 setAIRSWITCH(int deviceType) {
        this.AIRSWITCH = deviceType;
        return this;
    }

    public Integer getSPDJD() {
        return SPDJD;
    }

    public DeviceKv4301 setSPDJD(int deviceType) {
        this.SPDJD = deviceType;
        return this;
    }

    public Integer getSPD() {
        return SPD;
    }

    public DeviceKv4301 setSPD(int deviceType) {
        this.SPD = deviceType;
        return this;
    }

    public Integer getLJNUM() {
        return LJNUM;
    }

    public DeviceKv4301 setLJNUM(int deviceType) {
        this.LJNUM = deviceType;
        return this;
    }

}